// 按需引入VANT
import Vue from 'vue'
// 自定义样式不需要这个
// import 'vant/lib/index.css'
import { Lazyload, ShareSheet, Badge, Divider, Search, Col, Row, Button, Tab, Tabs, NavBar, Form, Field, Picker, Popup, DatetimePicker, Calendar, Uploader, Image as VanImage, Dialog, RadioGroup, Radio, IndexBar, IndexAnchor, Cell, CellGroup, NoticeBar, Icon, ImagePreview, Grid, GridItem, Toast, Sticky, Loading, List, ActionSheet, Tabbar, TabbarItem, PullRefresh, Card } from 'vant'

Vue.use(Lazyload, {
  // 懒加载图片加载失败时
  error: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F7374131f156b044cbfa811b9709cdd32586afb8d3a5c-vlAgpg_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1664531039&t=aeb0f51f876199a4c5ed6fe79176260b'
})
Vue.use(Divider)
Vue.use(ActionSheet)
Vue.use(List)
Vue.use(Loading)
Vue.use(Sticky)
Vue.use(Toast)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(ImagePreview)
Vue.use(Icon)
Vue.use(NoticeBar)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Button)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Picker)
Vue.use(Popup)
Vue.use(DatetimePicker)
Vue.use(Calendar)
Vue.use(Uploader)
Vue.use(VanImage)
Vue.use(Dialog)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Col)
Vue.use(Row)
Vue.use(Search)
Vue.use(Card)
Vue.use(Badge)
Vue.use(ShareSheet)
